package org.jeecg.modules.demo.outstoragedetail.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.outstoragedetail.entity.OutStorageDetail;
import org.jeecg.modules.demo.outstoragedetail.mapper.OutStorageDetailMapper;
import org.jeecg.modules.demo.outstoragedetail.service.IOutStorageDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: 出库单明细表
 * @Author: jeecg-boot
 * @Date: 2022-02-13
 * @Version: V1.0
 */
@Service
public class OutStorageDetailServiceImpl extends ServiceImpl<OutStorageDetailMapper, OutStorageDetail> implements IOutStorageDetailService {
    @Autowired
    private OutStorageDetailMapper outStorageDetailMapper;

    // 根据订单id查询
    @Override
    public IPage<OutStorageDetail> getByMainId(Page<OutStorageDetail> page, String mainId) {
        return outStorageDetailMapper.getByMainId(page, mainId);
    }
}
